package com.aftersale.platform.entity;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class User {
    private Integer id;
    private String username;
    private String password;
    private UserRole role; // 使用枚举类型
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    public enum UserRole {
        USER,
        ADMIN
    }
}